package com.example.blog.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 管理人员表(ManageInfo)实体类
 *
 * @author makejava
 * @since 2021-08-10 16:14:20
 */
@Data
@Slf4j
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoVo implements Serializable {
    private static final long serialVersionUID = -25645818464625208L;
    /**
     * 用户id
     */
    private String id;
    /**
     * 账号
     */
    @Column(name = "username",columnDefinition ="varchar(128) not null comment '用户名'")
    private String username;
    /**
     * 密码
     */

    private String password;
    /**
     * 手机号码
     */

    private String telephone;
    /**
     * 注册时间
     */ @Column(name = "addTime",columnDefinition ="datetime not null comment '注册时间'")
    private Date addTime;

    private Date loginTime;
    /**
     * 邮箱
     */

    private String email;

    /**
     * 在线时长
     */
    private Integer userType;
    List<RoleAndPermission> roleAndPermissionList;

}
